<?php
/**
* Class des comportements du plugin agenda ..
**/
class agendaBehaviors{

	public static function headContent(&$core, $_ctx){
	//	print_r($core->blog);
	echo "<link rel='stylesheet' type='text/css' href='./plugins/agendaPlugin/public/style.css' />\n";
	echo "<script type='text/javascript' src='/dotclear/plugins/agendaPlugin/public/script.js'></script>";
	}
	
	/**
	 * Ajout du lien alternate RSS
	 *
	 * @param dcCore $core
	 * @param dcContext $_ctx
	 */
	public static function Rss2Link(&$core, $_ctx){
		echo '<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="http://192.168.1.5/dotclear/index.php?feed/atom" />';
		
	}
	
	/**
	 * Ajout du lien alternate Atom
	 *
	 * @param dcCore $core
	 * @param dcContext $_ctx
	 */
	public static function AtomLink(&$core, $_ctx){
		echo '<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="'.$core->blog->url.'Agenda/feed/atom" />';
	}

}


?>
